(function () {
    //分享功能
    var shareLayer = $('.share-layer').SUIModel({
        shade: '.share-shade'
    });
    bindLayer( shareLayer );
    share();
})();

function bindLayer( shareLayer ) {
    $('.detail-share-btn').on('click', function () {
        shareLayer.open();
    });

    $('.share-layer .common-layer-close').on('click', function () {
        shareLayer.close();
    })
}

function share() {
    window._bd_share_config = {
        common: {
            bdUrl: window.location.href,
            bdSign: false
        },
        share : {
            "tag" : "share_1",
            "bdSize" : 32,
        }
    }
}
